package com.pdfbox.sample.quickstart;

import java.io.IOException;
import org.apache.pdfbox.pdmodel.PDDocument;

public class _1Creation {

  public static void main (String args[]) throws IOException {
    String exportFileName = "E:/PdfBox_Examples/empty.pdf";
    // Creating PDF document object
    PDDocument document = new PDDocument();
    // Saving the document
    document.save(exportFileName);
    // Closing the document
    document.close();

    System.out.println("export " + exportFileName + " success");
    // 由于这是一个空文档，如果您尝试打开此文档，这将提示您显示错误消息
  }

}
